<template>
	<view>
		<view class="imageBox">
			<image class="imageBoxinner" mode="widthFix" src="/static/S02.png"></image>
		</view>
		<view class="signBox">
			<view class="inner">
				<view class="titleBox">
					<view class='sig-tl'>
						<view class='tln'>已累计签到<label class='n'>{{total}}</label>天</view>
					</view>
					<!-- 未签到 -->
					<view v-if="1==1" class='sig-qiu sig-qiu-no'>
						<text class='ti'>签到</text>
					</view>
					<!-- 已签到 -->
					<view v-else class='sig-qiu sig-qiu-yes'>
						<text class='ti'>已签到</text>
					</view>
					<view class="weekBox">
						<view class='we-mod'>
							<!-- <view class='mo-line'>
								<block v-for="item in newSignedArr">
									<text class="q {{item.isSigned?'hover':''}}"></text>
								</block>
							</view> -->
							<view class='mo-ri'>
								<block v-for="item in newSignedArr">
									<text class="t">{{item.day}}</text>
								</block>
							</view>
						</view>
					</view>


				</view>
			</view>
		</view>
		<view class="buttonBox">
			<u-button class="InnerBox" bindtap="handleBotton">签到天数兑换为优惠卷</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			
				//周几变量
				myToday: [],
				//是否签到
				newSignBtnState: false,
				//总天数
				total: 0,
				//判断是否为七天
				isSeven: false,
				//显示数组
				newSignedArr: [{
						"day": "一",
						"isSigned": false
					},
					{
						"day": "二",
						"isSigned": false
					},
					{
						"day": "三",
						"isSigned": false
					},
					{
						"day": "四",
						"isSigned": false
					},
					{
						"day": "五",
						"isSigned": false
					},
					{
						"day": "六",
						"isSigned": false
					},
					{
						"day": "日",
						"isSigned": false
					}
				],

				//点券增加显示
				scoreFact: true,

				//本周日期数组
				dateList: [],
				//今天多少号
				myToday: ''
			}
		},
		methods: {

		}
	}
</script>

<style>
	.imageBox {
		width: 100%;
		height: 300rpx;
	}

	.signBox {
		width: 100%;
		height: 450rpx;
		overflow: hidden;
		position: relative;
	}

	.inner {
		padding: 40rpx 30rpx;
		height: 100%;
		box-sizing: border-box;
	}

	.titleBox {
		width: 100%;
		height: 200rpx;
		overflow: hidden;
	}

	.sig-tl {
		position: absolute;
		left: 30rpx;
		top: 40rpx;
		font-size: 28rpx;
	}

	.sig-tl .tln {
		color: #999;
	}

	.sig-tl .tln .n {
		padding: 0 4rpx;
	}

	.sig-tl .tlf {
		color: #ffcc51;
		margin-top: 15rpx;
	}

	.sig-tr {
		position: absolute;
		right: 30rpx;
		top: 40rpx;
		font-size: 28rpx;
		color: #999;
	}

	.sig-qiu {
		width: 190rpx;
		height: 190rpx;
		position: absolute;
		left: 50%;
		top: 40rpx;
		transform: translateX(-50%);
		background-repeat: no-repeat;
		background-size: cover;
		border-radius: 50%;
		text-align: center;
	}

	.sig-qiu-no {
		background-color: rgb(255, 0, 64);
	}

	.sig-qiu-yes {
		background-color: #999;
	}

	.sig-qiu .ti {
		color: #fff;
		font-size: 36rpx;
		display: inline-block;
		line-height: 190rpx;
	}

	.weekBox {
		width: auto;
		height: auto;
		overflow: hidden;
		margin-top: 60rpx;
	}

	.we-mod {
		width: 100%;
	}

	.mo-fen {
		width: 100%;
		height: 34rpx;
		overflow: hidden;
		position: relative;
		margin-bottom: 10rpx;
	}

	.mo-fen .f {
		height: 34rpx;
		line-height: 34rpx;
		padding: 0 14rpx;
		border-radius: 20rpx;
		background-color: #ffcc51;
		font-size: 24rpx;
		color: #fff;
		text-align: center;
		position: absolute;
		top: 0;
	}

	.mo-fen .f.f3 {
		left: 27%;
	}

	.mo-fen .f.f7 {
		right: 0;
	}

	.imageBoxinner {
		width: 100%;
	}

	.mo-line {
		height: 26rpx;
		width: auto;
		margin: 0 40rpx;
		position: relative;
		margin-bottom: 15rpx;
	}

	.mo-line::after {
		content: "";
		width: 100%;
		height: 8rpx;
		background-color: #f9f9f9;
		position: absolute;
		left: 0;
		top: 9rpx;
	}

	.mo-line .q {
		width: 26rpx;
		height: 26rpx;
		border-radius: 100%;
		background-color: #eaeaea;
		position: absolute;
		left: 0;
		top: 0;
		z-index: 1;
	}

	.mo-line .q:first-of-type {
		left: 0;
	}

	.mo-line .q:nth-of-type(2) {
		left: 14.5%;
	}

	.mo-line .q:nth-of-type(3) {
		left: 30%;
	}

	.mo-line .q:nth-of-type(4) {
		left: 47%;
	}

	.mo-line .q:nth-of-type(5) {
		left: 64%;
	}

	.mo-line .q:nth-of-type(6) {
		left: 80%;
	}

	.mo-line .q:last-of-type {
		left: auto;
		right: 0;
	}

	.mo-line .q.hover {
		background-color: #4680db;
	}

	.mo-ri {
		width: auto;
		height: 30rpx;
		margin: 0 40rpx;
		position: relative;
	}

	.mo-ri .t {
		height: 30rpx;
		font-size: 24rpx;
		color: #999;
		position: absolute;
		left: 0;
		top: 0;
		z-index: 1;
	}

	.mo-ri .t:first-of-type {
		left: 0;
	}

	.mo-ri .t:nth-of-type(2) {
		left: 14.5%;
	}

	.mo-ri .t:nth-of-type(3) {
		left: 30%;
	}

	.mo-ri .t:nth-of-type(4) {
		left: 47%;
	}

	.mo-ri .t:nth-of-type(5) {
		left: 64%;
	}

	.mo-ri .t:nth-of-type(6) {
		left: 80%;
	}

	.mo-ri .t:last-of-type {
		left: auto;
		right: 2rpx;
	}

	.littlePicker {
		width: 20%;
		height: 50%;
		position: absolute;
		right: 30rpx;
		top: 20rpx
	}

	.icon {
		position: absolute;
		top: 0;
		right: 0;
		width: 60rpx;
		height: 60rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.icon text {
		font-size: 40rpx;
		color: #999;
	}

	.iconBor {
		position: absolute;
		bottom: 0;
		right: 0;
		width: 340rpx;
		height: 60rpx;
		font-size: 28rpx;
		text-align: right;
		display: flex;
		flex-direction: column;
	}

	.box-l {
		position: absolute;
		bottom: 0;
		right: 0;
	}

	.buttonBox {
		width: 100%;
		height: 120rpx;
		position: absolute;
		bottom: 5%;
		left: 0;
		display: flex;
		justify-content: center;
	}

	.InnerBox {
		font-size: 36rpx;
		background-color: var(--themeColor);
		width: 400rpx;
		height: 70rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #fff;
		border-radius: 20rpx;
	}



	.titleBox {
		width: 100%;
		height: 200rpx;
		overflow: hidden;
	}

	.sig-tl {
		position: absolute;
		left: 30rpx;
		top: 40rpx;
		font-size: 28rpx;
	}

	.sig-tl .tln {
		color: #999;
	}

	.sig-tl .tln .n {
		padding: 0 4rpx;
	}

	.sig-tl .tlf {
		color: #ffcc51;
		margin-top: 15rpx;
	}

	.sig-tr {
		position: absolute;
		right: 30rpx;
		top: 40rpx;
		font-size: 28rpx;
		color: #999;
	}

	.imageBoxinner {
		width: 100%;
	}

	.InnerBox {
		font-size: 36rpx;
		background-color: var(--themeColor);
		width: 400rpx;
		height: 70rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		display: -webkit-flex;
		color: #000000;
		border-radius: 20rpx;
	}

	.buttonBox {
		margin: 68rpx;
		width: 100%;
		height: 120rpx;
		position: absolute;
		bottom: 5%;
		left: 0;
		display: flex;
		justify-content: center;
	}


	.sig-qiu {
		width: 190rpx;
		height: 190rpx;
		position: absolute;
		left: 50%;
		top: 40rpx;
		transform: translateX(-50%);
		background-repeat: no-repeat;
		background-size: cover;
		border-radius: 50%;
		text-align: center;
	}

	.sig-qiu-no {
		background-color: rgb(255, 0, 64);
	}

	.sig-qiu-yes {
		background-color: #999;
	}

	.sig-qiu .ti {
		color: #fff;
		font-size: 36rpx;
		display: inline-block;
		line-height: 190rpx;
	}
</style>
